package com.example.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.activity.dto.DeployInfoDTO;
import com.example.activity.po.DeployInfoPO;
import com.example.activity.so.acvitivi.DeployInfoSO;
import com.example.activity.vo.acvitivi.DeployInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeployInfoMapper extends BaseMapper<DeployInfoPO> {
    /**
     * 分页查询部署信息列表
     * @param page
     * @param deployInfoSO
     * @return
     */
    List<DeployInfoVO>  deployInfoList(IPage<DeployInfoVO> page, DeployInfoSO deployInfoSO);

    List<DeployInfoVO>  deployInfoList(DeployInfoSO deployInfoSO);

    /**
     * 更新部署状态
     *
     * @param idList 主键id
     * @param deployStatus 状态
     * @return 影响行数
     */
    int updateDeployStatus(@Param("idList")List<Long> idList, @Param("deployStatus")Integer deployStatus);

    int deleteDeploy(@Param("idList")List<Long> idList);

    /**
     * 更新部署信息
     * @param deployInfoDTO
     * @return
     */
    int updateDeployInfo(DeployInfoDTO deployInfoDTO);
}
